package com.hand.controller;

import com.hand.entity.OrderLineQueryContition;
import com.hand.entity.OrderLineQueryResult;
import com.hand.service.OrderLineQueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by 86136 on 2019/7/17.
 */
@RestController
@RequestMapping("orderLine")
public class OrderLineQueryController {
    @Autowired
    private OrderLineQueryService orderLineQueryService;
    @RequestMapping("selectOrderLinesByCondition")
    public List<OrderLineQueryResult> selectOrderLinesByCondition(@RequestBody OrderLineQueryContition contition){
        System.out.println("controller");
        return orderLineQueryService.selectOrderLinesByCondition(contition);
    }
}
